#include "Bonuz.h"
#include "CircularObstacleSketcher.h"


Position* Bonuz::getPosition(){
	return this->position;
}

void Bonuz::setPosition(Position* position){
	this->position = position;
}

Color * Bonuz::getElementColor(){
	return this->elementColor;
}

void Bonuz::setElementColor(Color * color){
	this->elementColor = color;
}

float Bonuz::getRadius(){
	return this->radius;
}

void Bonuz::setRadius(float radius){
	this->radius = radius;
}

Texture *Bonuz::getTexture(){
	return this->texture;
}

void Bonuz::setTexture(Texture *texture){
	this->texture = texture;
}

Color * Bonuz::getLineColor(){
	return this->lineColor;
}

void Bonuz::setLineColor( Color * color ) {
	this->lineColor = color;
}

float Bonuz::getMinXPos(){
	return this->getPosition()->getAxisX() - this->radius;
}

float Bonuz::getMinYPos(){	
	return this->getPosition()->getAxisY() - this->radius;
}

float Bonuz::getMaxXPos(){	
	return this->getPosition()->getAxisX() + this->radius;
}

float Bonuz::getMaxYPos(){
	return this->getPosition()->getAxisY() + this->radius;
}

SDL_Surface* Bonuz::getSurface(){
	return this->surface;
}

void Bonuz::setSurface(SDL_Surface * surface){
	this->surface = surface;
}

void Bonuz::draw(){
	Sketcher * sketcher = new CircularObstacleSketcher(this);
	sketcher->draw();
	delete(sketcher);
}

